<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1><b><a href="#" style="color: red" >欢迎来到博客展示界面</a></b></h1>

<a href="{% url 'management:blog_add' %}"><button>添加博客</button></a>

<form action="">
<input type="text" name="wd" placeholder="根据作者和标题进行查询">
<input type="submit" value="查询">
</form>

{% for blog in blogs %}
    <h3>{{ blog.title }}</h3><a href="{% url 'management:blog' blog.id%}">详情</a>
    <a href="{% url 'management:blog_del' blog.id%}">删除</a>
    <br>
{% endfor %}
<br>
<a href="{% url 'management:authors' %}">跳转作者界面</a>
<br>
{% if page > 1%}
    <a href="{% url 'management:blogs'%}?page={{ page|add:-1 }}&wd={{ wd }} ">上一页</a>
{% endif %}
<a href="#">当前页:第{{ page }}页</a>
{% if page < maxs %}
    <a href="{% url 'management:blogs'%}?page={{ page|add:1 }}&wd={{ wd }}">下一页</a>
{% endif %}
</body>
</html>